
let _page = {
    // 当前第几条
    current: function (current_page, data_length, page_size = 20) {
        let page_length = Math.ceil((data_length - 1) / page_size)
        return (current_page > page_length) ? page_length : current_page
    }
};

export default _page
